package com.sq.springcloud.service.impl;

import com.sq.springcloud.service.PaymentHystrixService;
import org.springframework.stereotype.Component;

/**
 * @Description: TODO
 * @author: ydy
 * @date: 2022-09-18 11:42
 */
@Component
public class PaymentFallbackService implements PaymentHystrixService {
    @Override
    public String PaymentInfo_OK(Integer id) {
        return "------PaymentFallbackService，PaymentInfo_OK，对方服务器宕机，请稍后再试！";
    }

    @Override
    public String PaymentInfo_TIMEOUT(Integer id) {
        return "------PaymentFallbackService，PaymentInfo_TIMEOUT";
    }
}
